package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.entity.SetmealDish;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetmealDishMapper {
    /**在菜品和套餐的关系表中差数据*/
    void insertSetmealDish(List<SetmealDish> setmealDishes);

    /**根据id删除数据*/
    @Delete("delete from setmeal_dish where setmeal_id = #{id}")
    void deleteSetmealDishe(Long id);

    /**删除关联表的数据*/
    void deleteDishSetmealByIds(List<Long> ids);

    /** //判断要启售的套餐中是否存在未启售的菜品*/
     List<Integer> selectDishIdById(Long setmealId);
}
